Ext.define('PJ.view.assessmentresultvist.UsersList', {
    extend: 'AM.default.DefaultList',
    alias: ['widget.assessmentUsersList'],//别名

    selModel: {
        selType: '',
        checkOnly: true
    },
    
    initComponent: function(){
    	var me = this;
        me.columns = [{
            header: '登录号',
            dataIndex: 't.login_id',
            width: 70,
            renderer: function(value, metaData, record){
                return value;
            }
        },{
            header: '姓名',
            dataIndex: 't.user_name',
            width: 70,
			renderer: function(value, metaData, record){
				metaData.tdAttr = 'data-qtip="' + value + '"';
				return value;
			}
        },{
            header: '手机号',
            dataIndex: 't.mobile_telephone',
            width: 100
        },{
            header: '职级',
            dataIndex: 't.order_num',
            flex: 1,
			renderer: function(value, metaData, record){
				metaData.tdAttr = 'data-qtip="' + value + '"';
				return value;
			}
        }, {
            header: '单位及职务',
            dataIndex: 't.duty_remark',
            flex: 1.5,
			renderer: function(value, metaData, record){
				metaData.tdAttr = 'data-qtip="' + value + '"';
				return value;
			}
        }, {
            header: '备注',
            dataIndex: 't.remark',
            width: 100,
			renderer: function(value, metaData, record){
				metaData.tdAttr = 'data-qtip="' + value + '"';
				return value;
			}
        }/*, {
            header: '手机号',
            dataIndex: 'mobilePhone',
            width: 120,
			renderer: function(value, metaData, record){
				metaData.tdAttr = 'data-qtip="' + value + '"';
				return value;
			}
        }*/];
        me.store = Ext.create('PJ.'+ prototype +'.assessmentresultvist.UsersList', {
            isLoad: false
        });
        this.loadType = gj_onlineLearning_constant.loadType;//加载方式
        me.callParent(arguments);
    },
    
    listeners: {
    	viewready: function(){
    		var me = this;
            var store = me.store;
            var params = store.proxy.extraParams;
            var newParams = {
            		searchClassId: me.up('window').paperId,
            		answerUserStatus: me.up("window").answerUserStatus,
            		searchQuestionnaireId: me.up("window").searchQuestionnaireId
            };
            Ext.apply(params, newParams);
            store.isLoad = true;
            store.load();
    		// 触发权限过滤事件
    		this.fireEvent("permission", this);
    	}
    }
});

